home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / MPW_TOOL / TOOLS / TOOLS_WI / ICON_8 / MEMMON_F / MPROTO.H < prev    next >
Text File  |  1990-03-02  |  2KB  |  69 lines

  1. /*
  2.  *  mproto.h: prototypes for functions used in memmon and drivers.
  3.  */
  4.  
  5. /*
  6.  * The following just puts "struct region" in global scope for strict ANSI
  7.  *  compilers.  We do it this way for fear that some compilers can't handle
  8.  *  the correct method, which would be an empty declaration "struct region;".
  9.  */
  10. struct region *fictitious();
  11.  
  12. /*
  13.  * Actual prototypes.
  14.  */
  15. /* mmain.c */
  16. novalue    mquit        Params((int exitcode));
  17.  
  18. /* mcontrol.c */
  19. novalue    skipgc        Params((int n));
  20. novalue    memmon        Params((noargs));
  21.     
  22.  
  23. /* mcolors.c */
  24. novalue    initcolors    Params((noargs));
  25. novalue    readcolors    Params((char *filename));
  26. novalue    setmap        Params((int m, int c));
  27. novalue    legend        Params((noargs));
  28.  
  29. /* mutils.c */
  30. int    chop        Params((char *s, char *w[], int n, int c));
  31. char *    trim        Params((char *s, int c));
  32. novalue    pstext        Params((char *s));
  33. novalue    pexit        Params((char *file));
  34. novalue    litout        Params((noargs));
  35.  
  36. /* minput.c */
  37. int    getcmd        Params((word *addr, word *len));
  38. word    getshow        Params((noargs));
  39. novalue    getregion    Params((struct region *region));
  40. novalue    rsync        Params((struct region *rgn, char *label));
  41.  
  42. /* moutput.c */
  43. novalue    refresh        Params((noargs));
  44. novalue    paintblk    Params((struct region *r,word addr,word len,int color));
  45. novalue    paintstr    Params((word addr, word len, int c1, int c2));
  46. int    gcwait        Params((int key, char *msg));
  47. int    mpause        Params((int key, char *msg));
  48.  
  49.     
  50. novalue    mstatus        Params((char *msg, int color));
  51. novalue    mtext        Params((char *s, int row, int col, int fg, int bg));
  52.  
  53. /* common to all device drivers */
  54. novalue    devsetup    Params((noargs));
  55. novalue    devinit        Params((noargs));
  56. novalue    devmap        Params((noargs));
  57. novalue    devflood    Params((int c));
  58. novalue    devpaint    Params((word s, word n, int c, int b));
  59. novalue    devtext        Params((char *s, int row, int col, int fg, int bg));
  60. novalue    devsnap        Params((noargs));
  61. novalue    devflush    Params((noargs));
  62. novalue    devterm        Params((noargs));
  63.  
  64. /* batch mode driver functions */
  65. novalue    batbegin    Params((noargs));
  66. novalue    battext        Params((char *s, int row, int col, int fg, int bg));
  67. novalue    batmem        Params((unsigned char mbuf[]));
  68. novalue batterm        Params((noargs));
  69.